//
//  SearchCell.m
//  Otaku
//
//  Created by lanou3g on 16/5/16.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import "SearchCell.h"

@interface SearchCell()
@property (weak, nonatomic) IBOutlet UIImageView *userImageView;
@property (weak, nonatomic) IBOutlet UILabel *userNameLebel;
@property (weak, nonatomic) IBOutlet UILabel *classificationLabel;

@property (weak, nonatomic) IBOutlet UILabel *cotentLable;

@end

@implementation SearchCell


- (void)setModel:(SearchModel *)model {
    
    _model = model;
    [self.userImageView sd_setImageWithURL:[NSURL URLWithString:self.model.avatar_url]];
    self.userNameLebel.text = self.model.name;
    self.classificationLabel.text = self.model.category_name;
    self.cotentLable.text = self.model.text;
  
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
